require 'Properties'

img_unsafe =  canvas:new("img/account_unsafe.png")
img_safe =    canvas:new("img/account_safe.png")


canvas:compose (0, 0, img_safe)
canvas:flush()
local function change_safe(property, value)
	print (">>>>>>>>>>>>>>>>>>MUDOU SAFE")
	if value=='true' then
		canvas:compose (0, 0, img_unsafe)
	else
		canvas:compose (0, 0, img_safe)
	end
	canvas:flush()
end

local function change_safex(property, value)
	print (">>>>>>>>>>>>>>>>>>MUDOU", property, value)
end

Properties.register(change_safe, 'showbalance')

Properties.register(change_safex)
